home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / magazine / amiga_e / 2darray.readme < prev    next >
Text File  |  1995-06-21  |  2KB  |  69 lines

  1. FILENAME          : 2darray.e
  2. DESTINATION DRIVER: EMODULES:oomodules/
  3. DESCRIPTION       : 2 dimesional arrays in E like Class for AmigaE 3.1a+
  4. CLASSNAME         : dd_array
  5. METHODS           :
  6.  - create
  7.  
  8.    create(x,y,eltype) ; dd_array.create(2,2,LONGS)
  9.  
  10.    x - XSize of Array , y - YSize of Array ,
  11.    eltype - Type of Elements in Array :
  12.    CHARS,INTS or LONGS
  13.    *Don`t use PTR TO LONG Elements or Some Compatibel Type
  14.     Class Support Only number for Elements other weiss Program wil crash*
  15.  
  16.  - end
  17.  
  18.    end() ; END dd_array
  19.  
  20.    Frees memory allocated for Array
  21.  
  22.  - size
  23.  
  24.    xsize,ysize:=dd_array.size()
  25.  
  26.    Return x and y size of array is similar to
  27.    xsize:=dd_array.sizeX
  28.    ysize:=dd_array.sizeY
  29.  
  30.  - type
  31.  
  32.    eltype:=dd_array.type()
  33.  
  34.    return Element Size of Array
  35.    eltype=(CHARS OR INTS OR LONGS)
  36.  
  37.  - get
  38.  
  39.    value:=dd_array(x,y)
  40.  
  41.    Returns a value in cell (x,y)
  42.  
  43.  - set
  44.  
  45.    dd_array.set(x,y,value)
  46.  
  47.    Puts value in cell (x,y) of array
  48.  
  49.  - offset
  50.  
  51.    THIS METHODE IS OBSOLETE FOR USERS LOOK AT SOURCE WHEN YOU WANT
  52.    TO KNOW WHAT DOES IT .
  53.  
  54.  - checkBounds
  55.  
  56.    THIS METHODE IS OBSOLETE FOR USERS LOOK AT SOURCE WHEN YOU WANT
  57.    TO KNOW WHAT DOES IT .
  58.  
  59. This Class Raises an Exception "2d" is is somthing wrong
  60. exceptioninfo can have this values :
  61.  
  62. (-1) - unknown element type
  63. (-2) - You have try to set or get an element from cell (x,y) but x is greater then
  64.        x size of array
  65. (-3) - You have try to set or get an element from cell (x,y) but y is greater then
  66.        y size of array
  67.  
  68.  
  69.